//
//  QWImagePickerManager.h
//  OntheRoadV4
//
//  Created by hz on 4/7/13.
//  Copyright (c) 2013 EricHuang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <UIKit/UIImagePickerController.h>
#import "QWImagePickerManagerDelegate.h"
#import "QWImagePickerControllerViewController.h"
#import "AlbumViewController.h"
#import "ImagePreviewViewController.h"

@interface QWImagePickerManager : NSObject


@property (nonatomic, strong) id userInfo;
@property (nonatomic, readonly) NSUInteger maxImageCnt;
@property (nonatomic, weak) id<QWImagePickerManagerDelegate> delegate;

/**
 *
 *  初始化QWImagePickerManager
 *  @param maxCnt   最多能够选择几张图片
 *  @param userInfo 用户标识信息
 *  @param delegate 代理
 *
 *  @return QWImagePickerManager 实例
 */
- (id)initWithMaxImageCnt:(NSUInteger)maxCnt
         specificUserInfo:(id)userInfo
                 delegate:(id<QWImagePickerManagerDelegate>)delegate;

/**
 *
 *  初始化QWImagePickerManager
 *  @param maxCnt       最多能够选择几张图片
 *  @param selectedImgs 已经选择的资源
 *  @param delegate     代理
 *
 *  @return QWImagePickerManager 实例
 */
- (id)initWithMaxImageCnt:(NSUInteger)maxCnt
             selectedImgs:(NSArray *)selectedImgs
                 delegate:(id<QWImagePickerManagerDelegate>)delegate;


/**
 *  显示选择相册或者视频选择页面
 *
 *  @param vc  present AlbumViewController的controller
 *  @param forPhotos  是否是选择图片，如果为否则显示视频
 *  @param animated  是否显示动画
 */
- (void)presentCameraOn:(UIViewController *)vc forPhotos:(BOOL)forPhotos Animated:(BOOL)animated;

/**
 *  取消选择相册的界面
 *
 *  @param animated 是否使用动画
 */
- (void)dismissCameraAnimated:(BOOL)animated;

@end

